<html><!DOCTYPE html>
<html>
<head>
    <style>
        div {
            border: 1px solid black;
            width: 100px;
            margin: 10px;
        }
    </style>
    <script src="../../../../../../g.alicdn.com/kissy/k/1.4.7/seed.js" tppabs="http://g.alicdn.com/kissy/k/1.4.7/seed.js" data-config="{combine:true}"></script>
</head>
<body>

<div class='d1'>
    d1
</div>

<div class='d2'>
    d2
</div>

<script>
    KISSY.use('core', function (S) {
        var $ = S.all;
        $("body").all(".d1").css("color", "red").end().all(".d2").css("color", "green");

    });
</script>

</body>
</html>  